home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Sample Code / Snippets / Development Tools & Languages / Dialogs / Dialogs.r < prev    next >
Encoding:
Text File  |  1992-07-15  |  1.7 KB  |  75 lines  |  [TEXT/MPS ]

  1. // Copyright (c) 1991 Apple Computer. All rights reserved.
  2.  
  3. #ifndef __TYPES.R__
  4. #include "Types.r"
  5. #endif
  6.  
  7. #ifndef __MacAppTypes__
  8. #include "MacAppTypes.r"
  9. #endif
  10.  
  11. #ifndef __ViewTypes__
  12. #include "ViewTypes.r"
  13. #endif
  14.  
  15. #if qDebug
  16. include "Debug.rsrc";
  17. #endif
  18.  
  19. include "MacApp.rsrc";
  20. include "Dialogs" 'CODE';
  21.  
  22. include "views.rsrc";            //  view 2000
  23.  
  24. include "Defaults.rsrc"    'SIZE' (-1);                    // default = 534, 246; 384, 96
  25. include "Defaults.rsrc"    'ALRT' (phAboutApp);            // default about window
  26. include "Defaults.rsrc"    'DITL' (phAboutApp);            // default about contents
  27. include "Defaults.rsrc"    'STR#' (kDefaultCredits);    // default credits
  28.  
  29.  
  30. //======================================================================================
  31. include "Defaults.rsrc" 'cmnu' (mApple);                // default Apple menus
  32. include "Defaults.rsrc" 'cmnu' (mEdit);                // default Edit menus
  33.  
  34. resource 'cmnu' (2) {
  35.     2,
  36.     textMenuProc,
  37.     0x7FFFFBBB,
  38.     enabled,
  39.     "File",
  40.      {
  41.         "Close", noIcon, noKey, noMark, plain, cClose;
  42.         "-", noIcon, noKey, noMark, plain, nocommand;
  43.         "Quit", noIcon, "Q", noMark, plain, cQuit
  44.     }
  45. };
  46.  
  47.  
  48.  
  49. resource 'MBAR' (kMBarDisplayed,
  50. #if qNames
  51. "Dialogs",
  52. #endif
  53.     purgeable) {
  54.     {mApple; 2; mEdit; }
  55. };
  56.  
  57.  
  58. // === for Debug Transcript window ======================================================
  59. #if qDebug
  60. resource 'dbug' (kDebugParamsID,
  61. #if qNames
  62. "Debug",
  63. #endif
  64.     purgeable) {
  65.         normal,                                // Bounding rect for debug window
  66.         4,                                     // Debug window font rsrc ID (monaco)
  67.         normal,                                 // Debug window font size
  68.         120,                                    // Number of lines
  69.         90,                                    // Width of lines in characters
  70.         openInitially,                        // show window at startup
  71.         "Dialogs Debug Transcript"        // Window title
  72. };
  73. #endif
  74.  
  75.